package com.misty.api.service;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.List;

/**
 * @ClassName : ExcelService
 * @Description : Excel
 * @Author :
 * @Date: 2022-12-23 22:10
 */
public interface ExcelService {
    void download(String fileType, List<?> data, HttpServletRequest request, HttpServletResponse response);

    void downloadTemplate(String fileType,
                          HttpServletRequest request, HttpServletResponse response);

    void exportExcelInfo(String filePath, String fileName, List<?> data, HttpServletResponse response) throws IOException;

    String getExcelFileName(String fileType);

    String getExcelTemplateFileName(String fileType);

    String getExcelFilePath(String fileName);

    boolean judgeFileExist(String filePath, HttpServletResponse response) throws IOException;
}
